package com.itheima.chapter10.producerconsumer11;

//生产者消费者模式改进
public class Demo {
    public static void main(String[] args) {
        Share s = new Share();
        Producer p =new Producer(s);
        Consumer c =new Consumer(s);
        p.start();
        c.start();
    }
}
